class CommentMailer < ActionMailer::Base

	def comment_created(current_user, post_user,content)
		@current_user = current_user
		@post_user = post_user
		@content = content

		mail(
			to: @post_user.email,
			from: @current_user.email,
			subject: "新的留言"
			# body: # if the email has no body, it needs a associated view to render.
			)
	end

end